﻿<!DOCTYPE html>
<head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width">

<title>扇贝导入</title>
<link href="//cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
<link href="//cdn.bootcss.com/ng-table/0.8.3/ng-table.min.css" rel="stylesheet">
<script src="//cdn.bootcss.com/angular.js/1.5.5/angular.min.js"></script>
<script src="//cdn.bootcss.com/ng-table/0.8.3/ng-table.min.js"></script>
<script src="//cdn.bootcss.com/angular-local-storage/0.2.7/angular-local-storage.min.js"></script>
<script src="../node_modules/angular-file-upload/dist/angular-file-upload.min.js"></script>

<link  href="app/css/app.css" rel="stylesheet">
<script src="app/js/app.js"></script>
</head>
<body ng-app="main">
<div class="main_warp">
    <div class="main_body">
       
        <div ng-controller="DemoCtrl" class="main_body_center">
                <div>  
                    <a href="javascript:;" class="link-btn" ng-click="chosefile()">选择文件
                        <input type="file" nv-file-select=".txt" uploader="uploader" id="input_file"/>
                    </a>
                    <a href="javascript:;" class="link-btn" ng-click="submit()">提交</a>
                    <a href="javascript:;" class="link-btn" ng-click="getFirstTen()">获取前10个</a>
                </div>
                <table ng-table="tableParams" class="table ng-table-responsive table-words" >
                 
                    <tr ng-repeat="user in data">
                        <td data-title="'Num'" width="50px">
                            {{user.num}}
                        </td>
                        <td data-title="'Word'" width="100px">
                            {{user.word}}
                        </td>
                        <td data-title="'State'" width="200px">
                            {{user.state}}
                        </td>
                    </tr>
                </table>
        </div>
        <div class="main_body_right">
            <p>有道单词导入到扇贝</p>
            <ol>
                <li>有道生词本导出单词为txt</li>
                <li>点击提交,获取授权</li>
                <li>点击选择文件,选择导出的txt</li>
                <li>点击提交,成功导入</li>
            </ol>
            <p>手动提交</p>
            <ol>
                <li>点击 获取前10个 按键,按Ctrl+C按键复制</li>
                <li>打开 <a href="https://www.shanbay.com/bdc/vocabulary/add/batch/" target="_blank">扇贝网</a>,在输入框中Ctrl+V粘贴</li>
                <li>点击 提交</li>
            </ol>

                <a href="https://www.shanbay.com/bdc/vocabulary/add/batch/" target="_blank">扇贝网</a>
                <br/>
                <a href="https://git.oschina.net/guekes/ShanbayImport.git" target="_blank">源码</a>
                <br/>
                <a href="https://www.shanbay.com/forum/thread/1115458/" target="_blank">社区</a>
        </div>
    </div>
    <div class="main_body_foot">
        <div class="span12">
            
        由于扇贝网API访问限制,每小时内只能导入100词.<br/>
        当达到上限时,可以选择手动提交或1小时后重新提交(关闭此网站,未提交的单词不会消失).<br/>
        </div>
    </div>
</div>
</body>
</html>
